home *** CD-ROM | disk | FTP | other *** search
- property tileNum, scrambledPos, timeLinePos
-
- on birth me, whichTile, randomPos, placedPos
- set tileNum to whichTile
- set scrambledPos to randomPos
- set timeLinePos to placedPos
- return me
- end
-
- on wrong me
- if (timeLinePos > 0) and (timeLinePos <> tileNum) then
- return 1
- else
- return 0
- end if
- end
-
- on save me
- return string(scrambledPos) & "," & string(timeLinePos) & ","
- end
-